
package com.be.beadmin.quality.repository;

import com.be.beadmin.quality.entity.ComplaintDetails;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author zjm
* @date 2023-05-15
**/
public interface ComplaintDetailsRepository extends JpaRepository<ComplaintDetails, String>, JpaSpecificationExecutor<ComplaintDetails> {

    ComplaintDetails findComplaintDetailsByIdAndDelete(String id, Integer delete);


    ComplaintDetails findComplaintDetailsByComplaintIdAndQuestionNoAndDelete(String id,Integer questionNo, Integer delete);



    ComplaintDetails findComplaintDetailsById(String id);

    List<ComplaintDetails> findComplaintDetailsByComplaintIdAndDeleteOrderByQuestionNo(String id, int delete);



}